package cn.itcast.nems.base.dto;

import cn.itcast.nems.common.QueryParam;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class DictionaryDTO implements QueryParam {
    private Integer id;
    private String code;
    private Integer parentId;
    // 通过parentCode 查询parentId
    private String parentCode;
    private String name;
    private String remark;
    private Integer state;

    public DictionaryDTO(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    public DictionaryDTO(String code) {
        this.code = code;
    }
}
